using System.Collections.Generic;
using com.tc.util;
using  com.tc.zigbee.zcl;
using  com.tc.zigbee.entity;
using  com.tc.zigbee.zcl.command;
namespace com.tc.zigbee.mt.income
{
    //	Byte: 1  		1 			1			2			2		8			1
    //	Length = 0x0D Cmd0 = 0x45 Cmd1 = 0xC1	SrcAddr	NwkAddr	IEEEAddr	Capabilites
    public class DeviceAnnounceIndication : IncomeMessage
    {
        short srcAddr;
        short nwkAddr;
        long ieeeAddr;
        byte capabilities;

        public short getSrcAddr()
        {
            return srcAddr;
        }

        public short getNwkAddr()
        {
            return nwkAddr;
        }

        public long getIeeeAddr()
        {
            return ieeeAddr;
        }

        public byte getCapabilities()
        {
            return capabilities;
        }

        public DeviceAnnounceIndication(byte[] data)
        {
            srcAddr = DataUtil.shortValue(data, 0);
            nwkAddr = DataUtil.shortValue(data, 2);
            ieeeAddr = DataUtil.longValue(data, 4);
            capabilities = data[12];
        }
    }
}